package visitor;/*
* @auther 顶风少年 
* @mail dfsn19970313@foxmail.com
* @date 2019-08-06 18:20
* @notify 
* @version 1.0
*/
public class VisitorA implements Visitor {

    public void visit(NodeA nodeA){
        System.out.println(nodeA.operationA());
    }

    public void visit(NodeB nodeB){
        System.out.println(nodeB.operationB());
    }
}
